package cn.xfdzx.android.apps.shop.contract;

import java.util.Map;

import cn.xfdzx.android.apps.shop.base.BaseView;
import cn.xfdzx.android.apps.shop.bean.MyFocusShopBean;
import cn.xfdzx.android.apps.shop.bean.MyFollowBean;
import cn.xfdzx.android.apps.shop.bean.StoreInfoBeen;
import io.reactivex.Flowable;


/**
 * @author zf
 * @date 2020/7/20.
 * Description：关注店铺
 */

public interface MyFollowContract {
    interface Model {
        Flowable<MyFollowBean> getFollowList(String limit, int page);

        Flowable<MyFollowBean> getDeleteFollow(Map<String,Object> map);
    }

    interface View extends BaseView {
        /**
         * 刷新完成
         */
        void finishRefresh();

        /**
         * 加载完成
         */
        void finishLoadMore();

        @Override
        void showLoading();

        @Override
        void hideLoading();

        @Override
        void onError(Throwable throwable);

        void getFollowListSuccess(MyFollowBean bean);

        void getDeleteFollowSuccess(MyFollowBean bean);

    }

    interface Presenter {
        /**
         *删除
         */
        void getDeleteFollow(Map<String,Object> map);

        /**
         *列表
         */
        void getFollowList(boolean isRefresh, boolean isLoading, String limit, int page);

    }
}
